<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
	<class name="Insesoft.BusinessEntities.Cotizacion,Insesoft.BusinessEntities" table="Cotizacion">

		<id name="Id" column="Id" type="Int32" unsaved-value="0">
			<generator class="native"/>
		</id>
		<many-to-one name="Empresa" column="EmpId" class="Insesoft.BusinessEntities.Empresa,Insesoft.BusinessEntities" lazy="false" fetch="join"/>
		<many-to-one name="Cliente" column="ClienteId" class="Insesoft.BusinessEntities.Cliente,Insesoft.BusinessEntities" lazy="false" fetch="join"/>
		<many-to-one name="Usuario" column="UsuarioId" class="Insesoft.BusinessEntities.Usuario,Insesoft.BusinessEntities" lazy="false" fetch="join"/>
		<many-to-one name="Vendedor" column="VendedorId" class="Insesoft.BusinessEntities.Vendedor,Insesoft.BusinessEntities" lazy="false" fetch="join"/>
		<many-to-one name="Material" column="MaterialId" class="Insesoft.BusinessEntities.Material,Insesoft.BusinessEntities" lazy="false" fetch="join"/>
		<many-to-one name="Linea" column="LineaId" class="Insesoft.BusinessEntities.Linea,Insesoft.BusinessEntities" lazy="false" fetch="join"/>
    <many-to-one name="TipoCambio" column="TipoCambioId" class="Insesoft.BusinessEntities.TipoCambio,Insesoft.BusinessEntities" lazy="false" fetch="join"/>   
    <property column="Fecha" type="DateTime" name="Fecha" />
		<property column="PrecioUnitario" type="Decimal" name="PrecioUnitario" />
		<property column="Subtotal" type="Decimal" name="Subtotal" />
		<property column="Porcentaje" type="Decimal" name="Porcentaje" />
		<property column="TotalUSD" type="Decimal" name="Totalusd" />
		<property column="TotalCol" type="Decimal" name="TotalCol" />
		<property column="Cantidad" type="Int32" name="Cantidad" />
		<property column="Montaje" type="Decimal" name="Montaje" />
		<property column="Base" type="Decimal" name="Base" />
		<property column="Altura" type="Decimal" name="Altura" />
		<property column="Tintas" type="Decimal" name="Tintas" />
		<property column="Cubrimiento" type="Decimal" name="Cubrimiento" />
		<property column="Troquel" type="Decimal" name="Troquel" />
		<property column="Doblez" type="Decimal" name="Doblez" />
		<property column="Cuatricromia" type="Decimal" name="Cuatricromia" />
		<property column="Otro" type="Decimal" name="Otro" />
		<property column="Evento" type="Boolean" name="Evento" />
		<property column="PorcEvento" type="Decimal" name="PorcEvento" />
		<property column="Aplicada" type="Boolean" name="Aplicada" />
		<property column="FecAplicada" type="DateTime" name="FecAplicada" />
		<property column="FecRegistro" type="DateTime" name="FecRegistro" />
		<property column="NumPedido" type="String" name="NumPedido" length="20" />
		<property column="PrecioMaterial" type="Decimal" name="PrecioMaterial" />
		<property column="PrecioTintas" type="Decimal" name="PrecioTintas" />
		<property column="PrecioArte" type="Decimal" name="PrecioArte" />
		<property column="PrecioImpresion" type="Decimal" name="PrecioImpresion" />
		<property column="PrecioMolde" type="Decimal" name="PrecioMolde" />
		<property column="PrecioCorte" type="Decimal" name="PrecioCorte" />
		<property column="PrecioPositivo" type="Decimal" name="PrecioPositivo" />
		<property column="PrecioSolvente" type="Decimal" name="PrecioSolvente" />
		<property column="Rendimiento" type="Decimal" name="Rendimiento" />
		<property column="Laminas" type="Decimal" name="Laminas" />
		<property column="Observacion" type="String" name="Observacion" length="500" />		
		<property column="DivLargo" type="Decimal" name="DivLargo" />
		<property column="DivAncho" type="Decimal" name="DivAncho" />
		
	</class>
</hibernate-mapping>
